package demo.combination;


/**
 * @author : feixiang.li
 * @since : 2025-09-17 15:12
 */
public class MultiplyExpression implements Expression {
    private final Expression left;
    private final Expression right;

    public MultiplyExpression(Expression left, Expression right) {
        this.left = left;
        this.right = right;
    }

    @Override
    public int getValue() {
        return left.getValue() * right.getValue();
    }
}
